package com.check.bean;

import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;

/**
 * @description:
 * @Author: zyt
 */
public class CheckRuleBean {
    private StringProperty ruleName = new SimpleStringProperty();
    private StringProperty ruleValue = new SimpleStringProperty();

    public CheckRuleBean() {
    }

    public CheckRuleBean(String ruleName, String ruleValue) {
        this.ruleName.set(ruleName);
        this.ruleValue.set(ruleValue);
    }

    public String getRuleName() {
        return ruleName.getValue();
    }

    public void setRuleName(String ruleName) {
        this.ruleName.set(ruleName);
    }

    public String getRuleValue() {
        return ruleValue.get();
    }

    public void setRuleValue(String ruleValue) {
        this.ruleValue.set(ruleValue);
    }

    public StringProperty ruleNameProperty() {
        return ruleName;
    }

    public StringProperty ruleValueProperty() {
        return ruleValue;
    }

    @Override
    public String toString() {
        return "CheckRuleBean{" +
                "ruleName=" + ruleName.get() +
                ", ruleValue=" + ruleValue.get() +
                '}';
    }
}
